package com.ztgf.message.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.message.model.bo.MessageAnnouncementBO;
import com.ztgf.message.model.dto.MessageAnnouncementDTO;
import com.ztgf.message.model.vo.MessageAnnouncementPageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 公告消息映射
 *
 * @author YUE
 * @Date 2020-05-28 16:20:54
 */
public interface MessageAnnouncementMapper extends BaseMapper<MessageAnnouncementDTO> {
    boolean deletePhById(Long id);

    Integer getUnreadMessageNum(Long shopId, int type);

    /**
     * @return : java.util.List<com.ztgf.message.model.vo.MessageAnnouncementPageVO>
     * @Author :chenyu.wang
     * @Description : 后台服务消息列表
     * @Date : 2021.03.10 10:54
     * @Param : []
     **/
    List<MessageAnnouncementPageVO> queryAdminPageList(Page<MessageAnnouncementPageVO> page, @Param("item") MessageAnnouncementBO bo);
}
